package com.bgs.eat.commodity.controller;

import com.bgs.eat.commodity.service.CommodityOrderDistributionStatusService;
import com.bgs.eat.config.CommonResult;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @ClassName CommodityOrderDistributionStatusController
 * @Description TODO 配送状态
 * @Author G胖
 * @Date 2022-10-30 下午 08:08
 **/
@RestController
@CrossOrigin
@RequestMapping("/commodityOrderDistributionStatus")
public class CommodityOrderDistributionStatusController {

    @Resource
    CommodityOrderDistributionStatusService commodityOrderDistributionStatusService;

    /**
    * @Author gpd
    * @Description 查询所有的配送状态
    * @Date 2022-10-31 上午 09:47
    * @Return com.bgs.eat.config.CommonResult

    */
    @GetMapping("/getCommodityOrderDistributionStatus")
    public CommonResult commodityOrderDistributionStatus(){
        return CommonResult.ok(commodityOrderDistributionStatusService.getCommodityOrderDistributionStatus());
    }
}
